#ihrm登录接口 对象层
import requests


class IhrmLoginApi(object):
    @classmethod
    def login(cls,json):
        resp = requests.post(url="https://heimahr.itheima.net/api/sys/login",
                             json=json)
        return resp
if __name__ == '__main__':
    resp=IhrmLoginApi.login(json={"mobile": "13800000002", "password": "hm#qd@23!", "isAgree": True})
    print('登录成功',resp.json())

